<template>
  <!--
  引用资源最好不要写相对路径
  以后这块复制到别的地方，再去改相对路径很麻烦
   -->
  <div>
    <tab-bar>
      <tab-bar-item path="/home" activeColor="green" >
        <img slot="item-icon" src="~assets/img/tabbar/home.png" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/home_active.png" alt="">
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/classify">
        <img slot="item-icon" src="~assets/img/tabbar/home2.png" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/home2_active.png" alt="">
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/cart">
        <img slot="item-icon" src="~assets/img/tabbar/home3.png" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/home3_active.png" alt="">
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <img slot="item-icon" src="~assets/img/tabbar/home4.png" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/home4_active.png" alt="">
        <div slot="item-text">档案</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>
<script>
import TabBar from "components/common/tabbar/TabBar";
import TabBarItem from "components/common/tabbar/TabBarItem";
export default {
  name: "MainTabBar",
  components: {
    TabBar,TabBarItem
  }
}
</script>

<style scoped>

</style>
